package com.lucky.service;

import com.lucky.pojo.vo.User;

import java.util.Collection;

/**
 * @Description
 * @Author Jalyson
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2019/6/27
 */
public interface UserService {
    /**
     * 获取所有
     * @return list
     */
    Collection<User> findAll();

    /**
     * save
     * @param obj user
     * @return save status
     */
    User save(User obj);

    /**
     * get user
     * @param id id
     * @return User
     */
    User get(Long id);

    /**
     * remove user
     * @param id id
     * @return remove status
     */
    boolean remove(Long id);

    /**
     * find by username and password
     * @param username username
     * @param password password
     * @return user
     */
    User findByUsernameAndPassword(String username, String password);

}
